package com.zhb.cloud.mybatis.sys.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import lombok.Data;

@Data
@Entity
@Table(name = "s_privilege")
public class Privilege implements Serializable {
	private static final long serialVersionUID = -1160084185410166027L;
	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(strategy = "uuid", name = "uuid")
	private String id;
	@Column(name = "description")
	private String description;
	@Column(name = "privilege_code", nullable = false)
	private String privilegeCode;
	@Column(name = "privilege_name", nullable = false)
	private String privilegeName;
	@Column(name = "create_date", nullable = false)
	private Date createDate;
}